package com.yiyuan.user.controller;

import com.yiyuan.user.model.SysPermission;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping("/qingjia")
public class QingJiaController {

    @RequestMapping(value = "/add", method = RequestMethod.GET)
    public String addQingjia(Model model) {
        model.addAttribute("sysPermission",new SysPermission());
        return "qingjia/qingjia-add";
    }

    @RequestMapping(value = "/add2", method = RequestMethod.GET)
    public String add2(Model model) {
        model.addAttribute("sysPermission",new SysPermission());
        return "qingjia/qingjia-edit";
    }
    @RequestMapping(value = "/chexiao", method = RequestMethod.GET)
    public String cx(Model model) {
        model.addAttribute("sysPermission",new SysPermission());
        return "qingjia/qingjia-chexiao";
    }
}
